<script type="text/javascript" >
function checkLoginForm(){
	var password=document.getElementById('password').value;
	if(''== password){
		alert('需要输入密码');
		document.getElementById("password").focus();
		return false;
	}
	return true;
}
</script>
    <style type="text/css">
      .modal {
        max-width: 400px;
      }
	  
      .modal .checkbox {
        margin-bottom: 10px;
      }
      .modal input[type="text"],
      .modal input[type="password"] {
        font-size: 16px;
        height: auto;
        margin-bottom: 15px;
        padding: 7px 9px;
      }
		.cf:before,.cf:after{content:"";display:table;}.cf:after{clear:both;}.cf{zoom:1;}
		 .link-option{line-height:37px;}
    </style>
  <form  id="login_form" action="/login/op" method="post" onsubmit="return checkLoginForm();">
  <div class="modal">
         <div class="modal-header"><h3>用户登陆</h3></div>
         <div class="modal-body">
        <input type="text" class="input-block-level" placeholder="输入账号"  id="account" name="account" >
        <input type="password" class="input-block-level" placeholder="输入密码" id="password" name="password" >
        <label class="checkbox">
          <input type="checkbox" value="remember-me"> 2周内自动登陆
        </label>
        <div class="cf">
                       <div class="pull-left">
                   <button class="btn btn-large btn-success" type="submit"> 确认登陆 </button>
                </div>
                <div class="pull-right">
                    <a href="/user/forgot" class="link-option">忘记了密码?</a>
                </div>
         </div>       
         </div>
         </div>
      </form>
	<script>
		
	window.onload = function() {
	  document.getElementById("account").focus();
	}
	</script>
